import { createRouter, createWebHistory } from 'vue-router'
import viewBoard from '@/layout/components/ViewBoard.vue'
const routes = [
  {
    path: '/',
    name: 'home',
    component: () => import('@/layout/index.vue'),
    children: [
      {
        path: '',
        name: 'dashboard',
        component: viewBoard
      },
      {
        path:'/shop',
        name:'shop',
        component: () => import('@/views/valorant/index.vue')
      },
      {
        path:'/userManage',
        name:'userManage',
        component: () => import('@/views/systemManage/userManage/index.vue')
      },
      
    
    ]
  },
  {
    path: '/chat',
    name: 'chat',
    component: () => import('@/views/chat.vue')
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/Login.vue')
  }

]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
